# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-digest-crc
_pkgname=Digest-CRC
pkgver=0.23
pkgrel=5
pkgdesc='Generic interface to CRC algorithms.'
arch=('x86_64' 'aarch64')
license=('PerlArtistic')
url='http://search.cpan.org/dist/Digest-CRC/'
depends=('perl')
makedepends=('perl-module-build' 'perl-module-install')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/$_pkgname-$pkgver.tar.gz")
sha512sums=('b92e40bf717882b0e694c6552a88f13ac92a569e4484eedfdfc57b7fe867e29a81e228d00c29e9e4ba120cb9e0ca4d10db12cad5af185893ebcd89b1be87d2c1')

build() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_pkgname-$pkgver"

  make install DESTDIR="$pkgdir"

  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}

